package com.project;

public class StaticTest {
    static int a = 8;
    int b = 9;
    static {
        System.out.println("静态初始化块");
        System.out.println(a);
//        System.out.println(b);
        System.out.println(StaticTest.c);

        {
            System.out.println("11111");    //实例初始化块
        }
    }


    static int c = 10;

    static {
        System.out.println("*****");
    }
    public StaticTest(){
        System.out.println("构造方法");
    }


    public static void main(String[] args) {
        new StaticTest();
        new StaticTest();
    }
}
